Skip to content

[3.7] bpo-24214: Fixed the UTF-8 and UTF-16 incremental decoders. (GH-14304)#14369

Merged
vstinner merged 3 commits into
python:3.7from
miss-islington:backport-894263b-3.7
Jun 25, 2019
Merged

[3.7] bpo-24214: Fixed the UTF-8 and UTF-16 incremental decoders. (GH-14304)#14369
vstinner merged 3 commits into
python:3.7from
miss-islington:backport-894263b-3.7

Conversation

@miss-islington

@miss-islington miss-islington commented Jun 25, 2019

Copy link
Copy Markdown
Contributor
  • The UTF-8 incremental decoders fails now fast if encounter
    a sequence that can't be handled by the error handler.
  • The UTF-16 incremental decoders with the surrogatepass error
    handler decodes now a lone low surrogate with final=False.
    (cherry picked from commit 894263b)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

https://bugs.python.org/issue24214

…-14304)

* The UTF-8 incremental decoders fails now fast if encounter
  a sequence that can't be handled by the error handler.
* The UTF-16 incremental decoders with the surrogatepass error
  handler decodes now a lone low surrogate with final=False.
(cherry picked from commit 894263b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@miss-islington

Copy link
Copy Markdown
Contributor Author

@serhiy-storchaka: Status check is done, and it's a failure ❌ .

@vstinner vstinner merged commit c755ca8 into python:3.7 Jun 25, 2019
@miss-islington miss-islington deleted the backport-894263b-3.7 branch June 25, 2019 10:29
@vstinner

Copy link
Copy Markdown
Member

Tests passed, so I merged the PR which was approved by @serhiy-storchaka, to not forget it.

ned-deily pushed a commit to ned-deily/cpython that referenced this pull request Jul 2, 2019
…thonGH-14304) (pythonGH-14369)

* bpo-24214: Fixed the UTF-8 and UTF-16 incremental decoders. (pythonGH-14304)

* The UTF-8 incremental decoders fails now fast if encounter
  a sequence that can't be handled by the error handler.
* The UTF-16 incremental decoders with the surrogatepass error
  handler decodes now a lone low surrogate with final=False.
(cherry picked from commit 894263b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants